home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
6
/
hanson.zip
/
INDEX.C
< prev
next >
Wrap
Text File
|
1985-12-31
|
384b
|
16 lines
/* index.c by Michael Hanson */
/* you may use this, but not for profit, and give me credit */
/* find index of char c in string str */
index(str,c)
char c;
char str[];
{
int ind;
for(ind = 0; str[ind] != EOS ; ++ind)
if(str[ind] == c)
return(ind);
return(-1);
}